'''
使用request发送post请求
'''
import requests#
base_url = 'http://192.168.2.36:8088/futureloan/mvc/api/member/'

url = base_url + 'login'

canshu = {
    "mobilephone":"18012345678",
    "pwd":"123456"
}
r = requests.post(url,data=canshu)
print(r.text)
assert r.json()['msg'] == "登录成功"

#测试网站
url = "http://www.httpbin.org/post"
r = requests.post(url,data=canshu)
print(r.text)

